package com.cpone.cloudweb.utils.bak;

import java.io.File;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.net.InetAddress;

public class Client {
	static final int MAX_THREADS = 40;
	public static void main(String[] args) throws IOException,InterruptedException {
		
		InetAddress addr = InetAddress.getByName("192.168.2.4");
		Integer port = 2200;
		Integer id = 5;
		String filePathName = "D:\\abcde.pcm";
//		InetAddress addr = InetAddress.getByName("localhost");

		if (ClientSocket.threadCount() < MAX_THREADS)
			new ClientSocket(addr, port, id, filePathName);
	}
public static void main1(String[] args) throws IOException,InterruptedException {
		
//		InetAddress addr = InetAddress.getByName("192.168.1.17");
	File myFile = new File("D:\\file\\file\\1294283599390.pcm");
	RandomAccessFile outNew = new RandomAccessFile(myFile,"rw");
	System.out.println(outNew.read());
}
}
